package com.ruoyi.procurementmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.procurementmanagement.mapper.EsBrandMapper;
import com.ruoyi.procurementmanagement.domain.EsBrand;
import com.ruoyi.procurementmanagement.service.IEsBrandService;

/**
 * 品牌Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-31
 */
@Service
public class EsBrandServiceImpl implements IEsBrandService 
{
    @Autowired
    private EsBrandMapper esBrandMapper;

    /**
     * 查询品牌
     * 
     * @param brandId 品牌主键
     * @return 品牌
     */
    @Override
    public EsBrand selectEsBrandByBrandId(Integer brandId)
    {
        return esBrandMapper.selectEsBrandByBrandId(brandId);
    }

    /**
     * 查询品牌列表
     * 
     * @param esBrand 品牌
     * @return 品牌
     */
    @Override
    public List<EsBrand> selectEsBrandList(EsBrand esBrand)
    {
        return esBrandMapper.selectEsBrandList(esBrand);
    }

    /**
     * 新增品牌
     * 
     * @param esBrand 品牌
     * @return 结果
     */
    @Override
    public int insertEsBrand(EsBrand esBrand)
    {
        return esBrandMapper.insertEsBrand(esBrand);
    }

    /**
     * 修改品牌
     * 
     * @param esBrand 品牌
     * @return 结果
     */
    @Override
    public int updateEsBrand(EsBrand esBrand)
    {
        return esBrandMapper.updateEsBrand(esBrand);
    }

    /**
     * 批量删除品牌
     * 
     * @param brandIds 需要删除的品牌主键
     * @return 结果
     */
    @Override
    public int deleteEsBrandByBrandIds(Integer[] brandIds)
    {
        return esBrandMapper.deleteEsBrandByBrandIds(brandIds);
    }

    /**
     * 删除品牌信息
     * 
     * @param brandId 品牌主键
     * @return 结果
     */
    @Override
    public int deleteEsBrandByBrandId(Integer brandId)
    {
        return esBrandMapper.deleteEsBrandByBrandId(brandId);
    }
}
